package com.fujin.gulimall.product.feign;

import com.fujin.common.Vo.SkuHasStockVo;
import com.fujin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @title: WareFeign
 * @Author Tan
 * @Date: 2022/2/1 16:11
 * @Version 1.0
 */
@FeignClient("gulimall-ware")
public interface WareFeign {

    @PostMapping("/ware/waresku/hasStock")
    public R getSkuHasStock(@RequestBody List<Long> skuIds);

}
